<?php

namespace Api\Model;

use Think\Model;

class CouponPathModel extends Model {

    /**
     * 保存优惠券路径
     * @param $userid 用户id
     * @param $couponCode 优惠券码
     * @param $status 状态
     * @param $remark 备注
     */
    public function savePath($userid, $couponCode, $status, $remark) {
        $data = array (
            'user_id' => $userid,
            'coupon_code' => $couponCode,
            'status' => $status,
            'remark' => $remark,
            'create_time' => time()
        );
        $this->add($data);
    }
}